"""
多态，
isinstance(user,People) 判断传递过来的参数是否是一个People，然后再进行响应的逻辑处理
多个对象都是继承的People，这样的参数就符合多态
"""


class base:
    def test(self):
        pass


class A(base):
    pass


class B(base):
    pass


class C:
    pass


class D:
    def t(self, c):
        if isinstance(c, base):
            print("符合------")
        else:
            print("类型不符合")


a = A()
b = B()
c = C()
d = D()
d.t(a)
d.t(b)
d.t(c)
